
import service from "@/utils/service.js"

let getlink=(url,method='get')=>{
    return new Promise((resolve,reject)=>{
        service.request({
            url,
            method,
        }).then((ok)=>{
            resolve(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
}
export default getlink